From: Keir Fraser Date: Thu, 3 Sep 2009 08:49:41 +0000 (+0100) Subject: xm: Add "tap2" to attach blocktap disks to VM X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13387 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=4dd7eb9f0914278ff9e4a9847788aa4ff9dc8c47;p=xen.git xm: Add "tap2" to attach blocktap disks to VM I detected a problem when using XenAPI. When I started a VM by using xm create command, blocktap disks were not attached to the VM. Signed-off-by: Masaki Kanno --- diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index bb816f278b..cb7130bebc 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -594,7 +594,7 @@ class sxp2xml: if len(child) > 0 and child[0] == "device"] vbds_sxp = map(lambda x: x[1], [device for device in devices - if device[1][0] in ("vbd", "tap")]) + if device[1][0] in ("vbd", "tap", "tap2")]) vifs_sxp = map(lambda x: x[1], [device for device in devices if device[1][0] == "vif"])